<extend name="Public/base" />
	<block name="footer">
		<include file="Public/footer" />
		<script>
$('#allcheck').click(function() {
	var val = $(this).prop('checked');
	if(val) {
		$('.idl').each(function() {
			$(this).prop('checked',true);
		});
	} else {
		$('.idl').each(function() {
			$(this).prop('checked',false);
		});
	}
});
		</script>
	</block>
<block name="main">
	<div class="container-fluid">
		<div class="row">
			<div class="col-lg-12">
				<h1 class="page-header">添加上课记录</h1>
			</div>
			<!-- /.col-lg-12 -->
		</div>

		<div class="row">
			<div class="col-lg-12">
				<!--
				<div class="panel panel-default">
					<div class="panel-heading"> Basic Form Elements </div>
				</div>
				-->
				<div class="panel-body">
					<div class="row">
						<div class="col-lg-12">
							<!-- /.row -->
							<div class="row">
								<div class="col-lg-12">
									<div class="panel panel-default">
										<!--
										<div class="panel-heading">
											DataTables Advanced Tables
										</div>
										-->
										<!-- /.panel-heading -->
										<div class="panel-body">
											<div class="dataTable_wrapper">
												<form action="" method="post">
													<input type="hidden" name="id" value="{$id}"/>
													<input type="hidden" name="time" value="{$time}"/>
												<table class="table table-striped table-bordered table-hover" id="dataTables-example">
													<thead>
														<tr>
															<th>序号</th>
															<th>姓名</th>
															<th><input type="checkbox" id="allcheck"/></th>
														</tr>
													</thead>
													<tbody>
														<volist name="list" id="list">
														<tr class="gradeC">
															<td>{$key+1+$start}</td>
															<td>{$list['name']}</td>
															<td>
																<input type="checkbox" name="idl[]" class="idl" value="{$list['id']}"/>
															</td>
														</tr>
														</volist>
														<tr>
															<td colspan="2">
																<div class="page">{$page}</div>
															</td>
															<td>
								<button type="submit" class="btn btn-default">提交</button>
															</td>
														</tr>
													</tbody>
												</table>
												</form>
											</div>
										</div>
										<!-- /.panel-body -->
									</div>
									<!-- /.panel -->
								</div>
								<!-- /.col-lg-12 -->
							</div>
							<!-- /.row -->
						</div>
					</div>
				</div>
			</div>
			<!-- /.col-lg-12 -->
		</div>
		<!-- /.row -->
	</div>
</block>
